<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
		<script type="text/javascript">
			//1.手机号
			var phone = /^1[3-9][0-9]{9}$/;
			alert(phone.test("13559595959"));

			//2.邮箱:xxxxx@163.com
			var Email = /^\w{1,}@[0-9 a-z]{2,5}(\.com)$/i;
			alert(Email.test("asj111fdlidsj@163.com"));

			//3.身份证:3506 00 19990101 12 3 x
			var IDs = /^(3506)[0-9]{2}[0-9]{4}[01][0-9][0-3][0-9]{3}[1-9][0-9 x]$/;
			alert(IDs.test("350624199608212818"))
		</script>
	</head>
	<body>
	</body>
</html>
